package com.example.lenovo.newsdemo;

import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

public class MyViewHolder extends RecyclerView.ViewHolder {

    ImageView news_iv_img;
    TextView news_tv_title;
    TextView news_tv_author;
    TextView news_tv_date;



    public MyViewHolder(View itemView) {
        super(itemView);

        news_iv_img = itemView.findViewById(R.id.news_iv_img);
        news_tv_date = itemView.findViewById(R.id.news_tv_date);
        news_tv_author = itemView.findViewById(R.id.news_tv_author);
        news_tv_title = itemView.findViewById(R.id.news_tv_title);
    }
}
